import request from '@/utils/request'

// 查询车载机具列表
export function listMachinery(query) {
    return request({
        url: '/company/terminal/list',
        method: 'get',
        params: query
    })
}

// 查询车载机具详细
export function getMachinery(id) {
    return request({
        url: '/company/terminal/' + id,
        method: 'get'
    })
}

// 新增车载机具
export function addMachinery(data) {
    return request({
        url: '/company/terminal',
        method: 'post',
        data: data
    })
}

// 修改车载机具
export function updateMachinery(data) {
    return request({
        url: '/company/terminal',
        method: 'put',
        data: data
    })
}

// 删除车载机具
export function delMachinery(id) {
    return request({
        url: '/company/terminal/' + id,
        method: 'delete'
    })
}
